package com.shou.types.exception;

import com.shou.types.common.ReturnCodeEnum;
import lombok.Getter;

@Getter
public class BaseException extends RuntimeException {
    protected final String errorCode;
    protected final String message;
    protected final ReturnCodeEnum httpStatus;

    public BaseException(String errorCode, String message, ReturnCodeEnum httpStatus) {
        super(message);
        this.errorCode = errorCode;
        this.message = message;
        this.httpStatus = httpStatus;
    }
}
